#ifndef DPDK_RING_H_
#define DPDK_RING_H_

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

// loop would break if not return 0
typedef int (*dpdk_pkt_callback)(uint8_t* pkt, int len, void* arg);

int dpdk_init(int portid, dpdk_pkt_callback cb, void* arg,
              int nb_mbufs, int mbuf_cache_size, int rx_ring_size, int tx_ring_size);

int dpdk_send(int portid, uint8_t* pkt, int len);


#ifdef __cplusplus
}
#endif

#endif

